package cn.qh.com.entity;

import java.util.Date;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 品牌分类关联(PmsCategoryBrandRelation)表实体类
 *
 * @author makejava
 * @since 2021-11-29 18:04:35
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "PmsCategoryBrandRelation")
@SuppressWarnings("serial")
public class PmsCategoryBrandRelation extends Model<PmsCategoryBrandRelation> {
    @TableId(type = IdType.AUTO)
    private int id; //主键


    @TableField(value = "brandId")
    private Long brandId;  //品牌id


    @TableField(value = "catelogId")
    private Long catelogId;  //分类id


    @TableField(value = "brandName")
    private String brandName;


    @TableField(value = "catelogName")
    private String catelogName;


    @Version
    private int version;   //版本


    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private int deleted;  //逻辑删除标志


    @TableField(value = "updatedTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;


    @TableField(value = "createdTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
}
